
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        
        <!-- InstanceBeginEditable name="doctitle" -->
        
        <title>Misure su reti di calcolatori - gruppo 2</title>
        <%@ page contentType="text/html; charset=iso-8859-1" language="java" import ="java.util.ArrayList, it.unisannio.lesim.fsm.Message" errorPage="error.jsp" %>
        <jsp:useBean id="Conversations" class="java.util.ArrayList" scope="request" ></jsp:useBean>
        <!-- InstanceEndEditable -->
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <link href="default.css" rel="stylesheet" type="text/css" />
        <style type="text/css">
            <!--
            .style1 {color: #EC5600}
            -->
        </style>
        <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
    </head>
    <body>
        <div id="header">
            <div id="logo"><a href="http://lesim1.ing.unisannio.it"><img src="images/logo_misure.png" alt="" /></a></div>
            <div id="menu">
            </div>
        </div>
        <div id="splash2"><a href="#"></a></div>
        <div id="content">
            <div id="colOne"><!-- InstanceBeginEditable name="center" -->	
            <%String errore = (String) request.getAttribute("Messaggio");%>
            
            
            <%if (errore != null) {%>
                <h2>Si e' verificato un errore: </h2>
                <p></p>
                <p align="left"><strong><%out.println(errore);%></strong></p>
                <%} else {%>
                
                
                <%if (Conversations.size() == 0) {%>
                <h2>selezione conversazione </h2>
                
                <a href="/AnalizzatoreSip/ReadConversations"> Leggi le conversazioni </a> 
                <meta http-equiv="refresh" content="0;url=/AnalizzatoreSip/ReadConversations">
                
                <%} else {%>
                <h2>selezione conversazione </h2>
                <p><strong>Si prega di selezionare una conversazione</strong></p>
                <form id="form1" method="post" action="/AnalizzatoreSip/ReadMessages">
                    <p>
                        <table align="center">
                            <tr>
                                <td width="200" height="30" align="center"><strong>Call-ID</strong></td>
                                <td width="180" height="30" align="center"><strong>From</strong></td>
                                <td width="180" height="30" align="center"><strong>To</strong></td>
                                <td width="30"  height="30" align="center">&nbsp;</td>
                            </tr>
                            
                            
                            <%
    for (int i = 0; i < Conversations.size(); i++) {
                            %>
                            <tr>
                                <td width="200" height="30" align="left"><%out.println(((Message) Conversations.get(i)).getCallId());%></td>
                                <td width="180" height="30" align="left"><%out.println(((Message) Conversations.get(i)).getField("From").getValue().replaceAll("<", "&#060"));%></td>
                                <td width="180" height="30" align="left"><%out.println(((Message) Conversations.get(i)).getField("To").getValue().replaceAll("<", "&#060"));%></td>
                                <% if (i == 0) {%>
                                <td width="180" height="30" align="left"> <input type="radio" checked="checked" name="conversation" value="<%out.println(((Message) Conversations.get(i)).getCallId());%>"/></td>
                                <% } else {%>
                                <td width="180" height="30" align="left"> <input type="radio" name="conversation" value="<%out.println(((Message) Conversations.get(i)).getCallId());%>"/></td>
                                <% } %>
                            </tr>
                            <%}%>
                            
                        </table>
                    </p>
                    <p align="center"><input type="submit" name="avanti"  value="avanti >>"/></p>
                </form>
                <%}
            }%>
                
                <div class="posted"><span class="style1">selezione conversazione</span> -&gt; selezione messaggi -&gt; selezione FSM -&gt; run -&gt; visualizza risultati </div>
                <!-- InstanceEndEditable -->
            </div>
            <div id="colTwo">
                <h3>menu</h3>
                <ul>
                    <li><a href="index.jsp">home</a></li>
                </ul>
                <p><a href="http://lesim1.ing.unisannio.it/MatDidattico/MisRetiCalc/Gruppi/Gruppo2/Index.html">progetto lesim</a></p>
        <p><a href="def_fsm.jsp">definizione FSM</a></p>
        <p><a href="fsm.jsp">modifica FSM</a></p>
        <p><a href="/AnalizzatoreSip/ReadFSMforDelete">elimina FSM</a></p>
            </div><div style="clear: both;">&nbsp;</div>
        </div>
        <div id="footer">
            <p>(c) 2008 Misure su reti di calcolatori.</p>
        </div>
</body><!-- InstanceEnd --></html>

